home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat1 / memleak.z / memleak
Encoding:
Text File  |  2002-10-03  |  4.9 KB  |  133 lines

  1.  
  2.  
  3.  
  4. mmmmeeeemmmmlllleeeeaaaakkkk((((1111MMMM))))                                                        mmmmeeeemmmmlllleeeeaaaakkkk((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      memleak - IRIX system memory leak utility
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      mmmmeeeemmmmlllleeeeaaaakkkk [ namelist ] [----ffff outfile] [----nnnn sample ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      mmmmeeeemmmmlllleeeeaaaakkkk is a utility that generates a report describing possible memory
  16.      leaks in the operating system.
  17.  
  18.      It is intended to be used only by those involved in writing and debugging
  19.      device drivers or other parts of the kernel.  There are times when zone
  20.      memory growth is normal.  Someone involved with writing and debugging
  21.      kernel or device driver modules will know when the growth is normal.
  22.  
  23.      _n_a_m_e_l_i_s_t contains symbol table information needed for symbolic access to
  24.      the system memory image being examined.  The default _n_a_m_e_l_i_s_t is ////uuuunnnniiiixxxx.
  25.  
  26. OOOOPPPPTTTTIIIIOOOONNNNSSSS
  27.      ----ffff _f_i_l_e_n_a_m_e  Writes any generated output to _f_i_l_e_n_a_m_e.
  28.  
  29.      ----nnnn _s_a_m_p_l_e    Sample each zone _s_a_m_p_l_e number of times.
  30.  
  31.      ----hhhh           Prints a usage message.
  32.  
  33.      If no arguments are given, the _m_e_m_l_e_a_k report is written to /tmp/memleak
  34.      with ////uuuunnnniiiixxxx as the namelist and ////ddddeeeevvvv////mmmmeeeemmmm as the memory device. 100 samples
  35.      of each memory zone are taken.  The memory device must match the
  36.      namelist. If a different kernel is used to boot the system (as when using
  37.      _b_o_o_t_p(1M)), the _n_a_m_e_l_i_s_t must be the kernel used to boot with, which
  38.      would match the /_d_e_v/_m_e_m device.
  39.  
  40. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  41.      memleak unix.65m -f memoryleaks
  42.  
  43.      memleak
  44.  
  45.      memleak -f outputfile
  46.  
  47.      memleak /unix
  48.  
  49.      memleak /unix  -f outputfile -n numberofsamples
  50.  
  51.      All arguments are optional.
  52.  
  53. EEEEXXXXAAAAMMMMPPPPLLLLEEEE OOOOUUUUTTTTPPPPUUUUTTTT
  54.      The following output shows a report where there
  55.      is a definite leak in the Sessions structure.
  56.      The Sessions structure size is 96 bytes, so
  57.      _k_m_e_m__s_p_l_i_t__z_o_n_e was set to 96.  There
  58.      may also be other memory leaks in the size 64
  59.      zones, so kmem_split_zone may be set to 64
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. mmmmeeeemmmmlllleeeeaaaakkkk((((1111MMMM))))                                                        mmmmeeeemmmmlllleeeeaaaakkkk((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      to make those structures private.
  75.  
  76.  
  77.      ZONE a800000000cde6c0 may be leaking.
  78.      First sample 8 pages, Last sample 47 pages
  79.  
  80.      ZONE                  NAME      SIZE  TOTAL     FREE  PAGES NODE INDEX
  81.      ======================================================================
  82.      a800000000cde6c0    size 64       64  12032    255     47    0     3
  83.      ZONE_TYPE = 3 "Heap 64" "mld" "Vsem" "imondata" "xfs_ifork"
  84.      "Virtual proce" "pfile" "vpgrp struct" "vsession stru" "Vshm"
  85.      "child pids"
  86.  
  87.  
  88.  
  89.      ZONE a800000100a202c0 may be leaking.
  90.      First sample 4 pages, Last sample 14 pages
  91.  
  92.      ZONE                  NAME      SIZE  TOTAL     FREE  PAGES NODE INDEX
  93.      ======================================================================
  94.      a800000100a202c0    size 64       64   3584    246     14    1     3
  95.      ZONE_TYPE = 3 "Heap 64" "mld" "Vsem" "imondata" "xfs_ifork"
  96.      "Virtual proce" "pfile" "vpgrp struct" "vsession stru" "Vshm"
  97.      "child pids"
  98.  
  99.  
  100.  
  101.      ZONE a800000000df9980 may be leaking.
  102.      First sample 9 pages, Last sample 82 pages
  103.  
  104.      ZONE                  NAME      SIZE  TOTAL     FREE  PAGES NODE INDEX
  105.      ======================================================================
  106.      a800000000df9980     Sessions      96  13994    106     82   -1     0
  107.      ZONE_TYPE = 2
  108.  
  109.  
  110.      100 samples were taken from 55 zones.
  111.  
  112. NNNNOOOOTTTTEEEESSSS
  113.      Some samples may fail if there is a shortage of swap space on the system.
  114.      The _m_e_m_l_e_a_k tool was developed to detect _p_o_s_s_i_b_l_e memory leaks in the
  115.      operating system.  It should be used in conjunction with detailed
  116.      analysis of the subsystems/structures it identifies.  At times, heavy
  117.      memory usage is normal.
  118.  
  119. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  120.      kmem_debug(1M), bootp(1M)
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.